Optimal. Leaf size=260 \[ -\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {4}{3} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\frac {1}{2} b d^{3/2} n \text {Li}_2\left (1-\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right ) \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.27, antiderivative size = 260, normalized size of antiderivative = 1.00, number of steps
used = 17, number of rules used = 9, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.360, Rules used = {272, 52, 65,
214, 2390, 6131, 6055, 2449, 2352} \begin {gather*} -\frac {1}{2} b d^{3/2} n \text {PolyLog}\left (2,1-\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )+\frac {1}{3} \left (-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}\right ) \left (a+b \log \left (c x^n\right )\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {4}{3} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )-b d^{3/2} n \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right ) \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}-\frac {4}{3} b d n \sqrt {d+e x^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 52
Rule 65
Rule 214
Rule 272
Rule 2352
Rule 2390
Rule 2449
Rule 6055
Rule 6131
Rubi steps
\begin {align*} \int \frac {\left (d+e x^2\right )^{3/2} \left (a+b \log \left (c x^n\right )\right )}{x} \, dx &=\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-(b n) \int \left (\frac {d \sqrt {d+e x^2}}{x}+\frac {\left (d+e x^2\right )^{3/2}}{3 x}-\frac {d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{x}\right ) \, dx\\ &=\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{3} (b n) \int \frac {\left (d+e x^2\right )^{3/2}}{x} \, dx-(b d n) \int \frac {\sqrt {d+e x^2}}{x} \, dx+\left (b d^{3/2} n\right ) \int \frac {\tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )}{x} \, dx\\ &=\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{6} (b n) \text {Subst}\left (\int \frac {(d+e x)^{3/2}}{x} \, dx,x,x^2\right )-\frac {1}{2} (b d n) \text {Subst}\left (\int \frac {\sqrt {d+e x}}{x} \, dx,x,x^2\right )+\frac {1}{2} \left (b d^{3/2} n\right ) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\frac {\sqrt {d+e x}}{\sqrt {d}}\right )}{x} \, dx,x,x^2\right )\\ &=-b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-\frac {1}{6} (b d n) \text {Subst}\left (\int \frac {\sqrt {d+e x}}{x} \, dx,x,x^2\right )+\left (b d^{3/2} n\right ) \text {Subst}\left (\int \frac {x \tanh ^{-1}\left (\frac {x}{\sqrt {d}}\right )}{-d+x^2} \, dx,x,\sqrt {d+e x^2}\right )-\frac {1}{2} \left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right )\\ &=-\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-(b d n) \text {Subst}\left (\int \frac {\tanh ^{-1}\left (\frac {x}{\sqrt {d}}\right )}{1-\frac {x}{\sqrt {d}}} \, dx,x,\sqrt {d+e x^2}\right )-\frac {1}{6} \left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{x \sqrt {d+e x}} \, dx,x,x^2\right )-\frac {\left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{e}\\ &=-\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )+(b d n) \text {Subst}\left (\int \frac {\log \left (\frac {2}{1-\frac {x}{\sqrt {d}}}\right )}{1-\frac {x^2}{d}} \, dx,x,\sqrt {d+e x^2}\right )-\frac {\left (b d^2 n\right ) \text {Subst}\left (\int \frac {1}{-\frac {d}{e}+\frac {x^2}{e}} \, dx,x,\sqrt {d+e x^2}\right )}{3 e}\\ &=-\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {4}{3} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\left (b d^{3/2} n\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1-\frac {\sqrt {d+e x^2}}{\sqrt {d}}}\right )\\ &=-\frac {4}{3} b d n \sqrt {d+e x^2}-\frac {1}{9} b n \left (d+e x^2\right )^{3/2}+\frac {4}{3} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )+\frac {1}{2} b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )^2+\frac {1}{3} \left (3 d \sqrt {d+e x^2}+\left (d+e x^2\right )^{3/2}-3 d^{3/2} \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right )\right ) \left (a+b \log \left (c x^n\right )\right )-b d^{3/2} n \tanh ^{-1}\left (\frac {\sqrt {d+e x^2}}{\sqrt {d}}\right ) \log \left (\frac {2 \sqrt {d}}{\sqrt {d}-\sqrt {d+e x^2}}\right )-\frac {1}{2} b d^{3/2} n \text {Li}_2\left (1-\frac {2}{1-\frac {\sqrt {d+e x^2}}{\sqrt {d}}}\right )\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 0.49, size = 301, normalized size = 1.16 \begin {gather*} \frac {b e n x^2 \sqrt {d+e x^2} \left (-\frac {1}{4} \, _3F_2\left (-\frac {1}{2},1,1;2,2;-\frac {e x^2}{d}\right )+\frac {d \left (-1+\left (1+\frac {e x^2}{d}\right )^{3/2}\right ) \log (x)}{3 e x^2}\right )}{\sqrt {1+\frac {e x^2}{d}}}+\frac {b d n \sqrt {d+e x^2} \left (-\, _3F_2\left (-\frac {1}{2},-\frac {1}{2},-\frac {1}{2};\frac {1}{2},\frac {1}{2};-\frac {d}{e x^2}\right )+\sqrt {1+\frac {d}{e x^2}} \log (x)-\frac {\sqrt {d} \sinh ^{-1}\left (\frac {\sqrt {d}}{\sqrt {e} x}\right ) \log (x)}{\sqrt {e} x}\right )}{\sqrt {1+\frac {d}{e x^2}}}+\frac {1}{3} \sqrt {d+e x^2} \left (4 d+e x^2\right ) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )+d^{3/2} \log (x) \left (a-b n \log (x)+b \log \left (c x^n\right )\right )-d^{3/2} \left (a-b n \log (x)+b \log \left (c x^n\right )\right ) \log \left (d+\sqrt {d} \sqrt {d+e x^2}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {\left (e \,x^{2}+d \right )^{\frac {3}{2}} \left (a +b \ln \left (c \,x^{n}\right )\right )}{x}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \log {\left (c x^{n} \right )}\right ) \left (d + e x^{2}\right )^{\frac {3}{2}}}{x}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (e\,x^2+d\right )}^{3/2}\,\left (a+b\,\ln \left (c\,x^n\right )\right )}{x} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________